package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.heima.model.annotation.IdEncrypt;
import lombok.Data;

import java.util.Date;

/**
 * APP用户关注信息表
 */
@Data
//@Builder
@TableName(value = "ap_user_follow")
public class ApUserFollow {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @IdEncrypt
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 粉丝ID
     */
    @IdEncrypt
    @TableField(value = "follow_id")
    private Long followId;

    /**
     * 粉丝昵称
     */
    @TableField(value = "follow_name")
    private String followName;

    /**
     * 关注度
     0 偶尔感兴趣
     1 一般
     2 经常
     3 高度
     */
    @TableField(value = "level")
    private Short level;

    /**
     * 是否动态通知
     */
    @TableField(value = "is_notice")
    private Boolean isNotice;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    @TableField(value = "burst")
    @JsonIgnore
    private String burst;
}
